{% load filter %}
{% extends '2base.html' %}
{% block title %}
<title>Wow Dkp Engine Forum</title>
<style type="text/css" media="screen">
	#paginate {
		text-align: center;
	}
	#paginate a {
		text-decoration: none;
	}
	#paginate a:hover {
		text-decoration: underline;
	}
	.current-page-mark {
		background-color: #b5edbc;
		padding: 0 4px 0 4px;
		color: #fff;
	}
	#paginate b {
		padding: 0 4px 0 4px;
	}
</style>
{% endblock %}
{% block headline %}
{% endblock %}
{% block secondmenu %}{% include 'second_menu.html'%}{% endblock %}
{% block content %}
<div class="addons">
	{% for addon in addons %}
	<div class="addon">
		<div class="addon-title">{{ addon.name }}</div>
		<br />
		<div class="addon-meta">
			<div class="round4"></div>
			<div class="round2"></div>
			<div class="round1"></div>
			<div class="addon-info">
				<span class="addon-author"> {{addon.author}} </span><span class="addon-catagory"> {{addon.catagory}} </span><span class="addon-version">{{addon.version}}</span>{% for tag in addon.tags %}<span class="addon-span">{{ tag }}</span>{% endfor %}
			</div>
			<div class="round1"></div>
			<div class="round2"></div>
			<div class="round4"></div>
		</div>
		<br />
		<div class="span-15 prepend-1 "> 
			<p>{% if addon.screenshot %}<img src="/addon/pic/{{ addon.key.id }}" class="top pull-1 right img-frame" alt="test" />{% endif %}{{ addon.summary }}</p>
		</div>
		<br />
		<div class="addon-download">
			<span class="addon-download-meta"><a href="{{ addon.download }}">Download</a></span> 
		</div>
		{% ifequal user addon.member.user %}<a href="/addons/edit/{{ addon.key.id }}" title="edit">Edit</a> <a href="/addons/delete/{{ addon.key.id }}" title="delete">Delete</a>{% endifequal %}
	</div>
	{% endfor %}
</div>
{% include 'paginate_addons.html' %}
{% endblock%}
{% block siderbar %}
{% include 'forumSiderbar.html' %}
{% endblock%}